package com.chenjie.executor.day04;

public class Main1 {
    public static void main(String[] args) {
        //获取当前正在执行的线程
        Thread thread = Thread.currentThread();
        //输出线程名称
        System.out.println(thread.getName());
        thread.setName("haha");
        System.out.println(thread.getName());

    }
}
